package com.mapKeyVal.key;

public class WoBoxKey {
	private String wo_Id;
	private String box_id;

	public String getWo_Id() {
		return wo_Id;
	}

	public void setWo_Id(String wo_Id) {
		this.wo_Id = wo_Id;
	}

	public String getBox_id() {
		return box_id;
	}

	public void setBox_id(String box_id) {
		this.box_id = box_id;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((box_id == null) ? 0 : box_id.hashCode());
		result = prime * result + ((wo_Id == null) ? 0 : wo_Id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		WoBoxKey other = (WoBoxKey) obj;
		if (box_id == null) {
			if (other.box_id != null)
				return false;
		} else if (!box_id.equals(other.box_id))
			return false;
		if (wo_Id == null) {
			if (other.wo_Id != null)
				return false;
		} else if (!wo_Id.equals(other.wo_Id))
			return false;
		return true;
	}

	public WoBoxKey(String wo_Id, String box_id) {
		super();
		this.wo_Id = wo_Id;
		this.box_id = box_id;
	}

	@Override
	public String toString() {
		return "WoOpeKey [wo_Id=" + wo_Id + ", box_id=" + box_id + "]";
	}

}
